<!DOCTYPE html>
<%@page import="mobi.weq.util.Util"%>
<%@page import="mobi.weq.model.User"%>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Log in</title>

<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=visualization"></script>
<style type="text/css">
html,body,#map-canvas {
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px
}
</style>
</head>
<body>
	<%
		User user = Util.getUserFromSession(request, response);		
		if (user != null) {
	%>
	<script type="text/javascript" src="jsp/map.js"></script>
	<div class="btn-group hidden" id="menu-buttons">
		<a href="observation" class="btn btn-default" id="upload-observation-button" style="margin-bottom: 15px;">Upload your Observation</a>
		<a href="settings" id="settings-button" class="btn btn-default" style="margin-bottom: 15px;">Settings</a>
		<a href="logout" id="logout-button" class="btn btn-default" style="margin-bottom: 15px;">Logout</a>
	</div>
	<div id="map-canvas"></div>
	<%
		} 
	%>
</body>
</html>